﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SmartSpace.UI.Silverlight;
using RTC.UI.ServiceRef;
using System.ServiceModel;

namespace RTC.UI
{
    public class RTCModule : AppModule
    {
        public RTCModule()
            : base(new Guid("{F7BF24B8-C9C7-41F7-91A3-427337F105FB}"), "RTC Module")
        {
        }

        public static RTCWebServiceSoapClient CreateRTCProxy()
        {
            System.ServiceModel.Channels.Binding binding = new System.ServiceModel.BasicHttpBinding();

            RTCWebServiceSoapClient client = new RTCWebServiceSoapClient(binding, new EndpointAddress((Application.Current as SlApp).Params.AppUrl + "Services/RTCWebService.asmx"));
            return client;
        }
    }
}
